python3-install: 
    file.managed: #cp文件到minion端
        - name: /usr/local/src/Python-3.6.4.tar.xz
        - source: salt://python3/files/Python-3.6.4.tar.xz
        - user: root
        - group: root
        - mode: 644
        - unless: test -f /usr/local/src/Python-3.6.4.tar.xz

    cmd.run:
        - names: 
            - cd /usr/local/src &&tar xvf Python-3.6.4.tar.xz &&cd Python-* &&./configure --prefix=/usr/local &&make && make  altinstall && ln -s /usr/local/bin/python3.6 /usr/bin/python3
        - unless: test -f /usr/bin/python3
